package vn.candyapp.qlct;

import java.util.ArrayList;
import java.util.List;
import vn.candyapp.qlct.fragment.BaseFragment;
import android.support.v7.app.ActionBarActivity;

public class BaseActivity extends ActionBarActivity {
	
	private List<BaseFragment> fragmentsStack = new ArrayList<BaseFragment>();

	
	public void addFragmentToStack(BaseFragment f) {
		if (!fragmentsStack.contains(f)) 
			fragmentsStack.add(f);
	}
	
	public BaseFragment getFragmentAtPos(int position) {
		return fragmentsStack.get(position);
	}
	
}
